Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proper handling of help commands (fixes #2154) #2319

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

wjiec
Copy link
Contributor

@wjiec wjiec commented Nov 28, 2023

this PR fixes #2154.

Steps to reproduce the problem:

  1. Type : or / to open prompt bar
  2. Type ?
  3. Type ESC to close the help page

There is an extra prompt bar on the page and it cannot be closed by ESC.

This PR fixes the above problem, and also fixes the problem of unable to open the help page with the help or h commands.

Fixes #2154

Copy link
Owner

@derailed derailed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wjiec Very cool! Thank you for this update Jayson!!

Could you update the commit to mention Fix #2154?
Thank you!

@@ -122,6 +122,14 @@ func (p *Prompt) SendStrokes(s string) {
}
}

// SetInactive sets the prompt is inactive.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Perhaps Deactivate might be a better name since we are not setting any value?
Also doc could say something like: ... sets the prompt as inactive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Sorry my English is not that good.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tx Jayson! nw - I shall not cast that first stone...

@derailed derailed added enhancement New feature or request InProgress Marks an issue has being worked on labels Nov 29, 2023
@wjiec wjiec requested a review from derailed November 29, 2023 06:22
@wjiec wjiec changed the title proper handling of help commands proper handling of help commands (fixes #2154) Nov 29, 2023
Copy link
Owner

@derailed derailed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wjiec Thank you for the updates Jayson!!

@derailed derailed merged commit 0c642c6 into derailed:master Nov 29, 2023
2 of 3 checks passed
@wjiec wjiec deleted the bugfix/cmd-help branch November 30, 2023 02:14
@derailed derailed mentioned this pull request Dec 7, 2023
thejoeejoee pushed a commit to thejoeejoee/k9s that referenced this pull request Feb 23, 2024
placintaalexandru pushed a commit to placintaalexandru/k9s that referenced this pull request Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request InProgress Marks an issue has being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Help and h command does not work if typed into cmdbuff
2 participants